package cn.snowsoft.iot.module.warning.dal.dataobject.warning.record;

import cn.snowsoft.iot.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("warning_record")
public class WarningRecordDO extends BaseDO {

    @TableId("id")
    private Long id;

    private String pointValue;

    private Long configId;

    private String configName;

    private String warningData;

    private Long equipmentId;

    private String equipmentName;

    private String equipmentCode;

    private Long pointId;

    private String pointName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime warningTime;

    private Integer status;

    private String handleUser;

    private LocalDateTime handleTime;

    private String remark;

    private String warningTag;

    private String warningType;
}
